package woaini.wind.bot.command.qylc.app.ticket.document;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.FieldNameConstants;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 这个表只记录失败的
 *
 * @see
 * @author yefeng {@date 2025-05-31 12:02:20}
 */
@Document(collection = "face_log")
@Getter
@Setter
@NoArgsConstructor
@FieldNameConstants
public class FaceRequestLog {

  @Id private String id;

  /**
   * @see LocalDateTime 创建时间
   */
  @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
  @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
  private LocalDateTime createTime;

  /**
   * @see String 姓名
   */
  private String certName;

  /**
   * @see String 唯一标识
   */
  private String vid;

  /**
   * @see String 响应正文
   */
  private String responseBody;
}
